package in.wenwen.controller;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import in.wenwen.entity.Sitemap;
import in.wenwen.handler.IndexHandler;
import in.wenwen.util.ConstUtil;

import org.jiucheng.web.annotation.Controller;
import org.jiucheng.web.annotation.Controller.GET;

@Controller(IndexHandler.class)
public class SitemapController {
    
    @GET("/sitemap.html")
    public String sitemap(HttpServletRequest request) {
        List<Sitemap> sitemaps = new ArrayList<Sitemap>();
        request.setAttribute("sitemaps", sitemaps);
        return ConstUtil.getUri("sitemap");
    }
}
